package com.wjk.cms.auth;

public class AuthContext {

    private static ThreadLocal<AuthSubject> current = new ThreadLocal<>();

    public static void set(AuthSubject authSubject) {
        current.set(authSubject);
    }

    public static void clear() {
        current.remove();
    }

    public static AuthSubject get() {
        return current.get();
    }



}
